package com.huifeng.service;

import com.huifeng.bean.Car;
import com.huifeng.dao.CarDao;
import com.huifeng.dao.impl.CarDaoimpl;
import com.huifeng.utils.PageUtils;

import java.util.List;

public class CarService  {
    //创建多态类对象
    CarDao se=new CarDaoimpl();
    public int findtotalcount(){
        return se.findtotalcount();
    }
    public List<Car> selectByPage(PageUtils pu){
        return se.selectByPage(pu);
    }
    public int insertCar(Car car){
        return se.insertCar(car);
    }
}
